{include file="admin/header.htm"}
<form action="{$smarty.const.ADMIN_NAME}?m=admin&c=account&a=add" method="post" name="myform">
<table cellpadding="2" cellspacing="1" class="table_form">
    <caption>添加管理员</caption>
    <tr>
        <th width="10%"><strong>管理员名称</strong></th>    
        <td><input type="text" name="username"></td>
    </tr>
    <tr>
        <th width="10%"><strong>密码</strong></th>    
        <td><input type="password" name="password"></td>
    </tr>
    <tr>
        <th width="10%"><strong>确认密码</strong></th>    
        <td><input type="password" name="password_confirm"></td>
    </tr>
    <tr>
        <th width="10%"><strong>强制QQ登陆</strong></th>    
        <td><input type="radio" name="force_qq" value="0" checked style="vertical-align:middle;"/>否 <input type="radio" name="force_qq" value="1" style="vertical-align:middle;">是</td>
    </tr>
    <tr>
        <th width="10%"><strong>是否是自由账号</strong></th>    
        <td><input type="radio" name="isfree" value="0" style="vertical-align:middle;">否 <input type="radio" name="isfree" value="1" style="vertical-align:middle;" checked>是 <span style="color:red;">(自由账号可以修改自己的资料)</span></td>
    </tr>
    <tr>
        <th width="10%"><strong>用户组</strong></th>    
        <td>
            <select name="groupid">
                {foreach $groups as $group}
                <option value="{$group.groupid}">{$group.groupname}</option>
                {/foreach}
            </select>
        </td>
    </tr>
    <tr>
        <th width="10%"></th>    
        <td><input type="submit" name="doadd" value="确定" class="button_style"></td>
    </tr>
</table>
</form>
{include file="admin/footer.htm"}